#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int* findErrorNums(int* nums, int numsSize, int* returnSize) {
    int static arr[2];
    for (int c = 1; c <= numsSize; c++)
    {
        int count = 0;
        for (int i = 0; i < numsSize; i++)
        {
            if (c == nums[i])
            {
                count++;
            }
        }
        if (count == 2)
        {
            arr[0] = c;
        }
        else if (count == 0)
        {
            arr[1] = c;
        }
    }
    *returnSize = 2;
    return arr;
}
int main()
{
   int t = 0;
    while (printf("*"))
    {
        t++;
        if (t < 3)
            break;
    }
	int m, n;
	printf("Enter m,n;");
	scanf("%d%d", &m, &n);
	while (m != n) //1
	{
		while (m > n) m = m - n; //2
		while (n > m) n = n - m; //3
	}
	printf("m=%d\n", m);
	return 0;
}
